package br.com.furb.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Representa um indice da tabela.
 *  
 * @since 01/11/2011
 */
public class Index {
	
	private Long code;
	private String name;
	private List<Column> columns;
	
	/**
	 * 
	 */
	public Index(){
		this(0l,"",new ArrayList<Column>());
	}
	
	/**
	 * @param code - o codigo
	 * @param name - o nome
	 * @param columns - as colunas referenciadas
	 */
	public Index(Long code, String name, List<Column> columns) {
		this.code = code;
		this.name = name;
		this.columns = columns;
	}

	/**
	 * @return code - o codigo
	 */
	public Long getCode() {
		return code;
	}
	
	/**
	 * @param code - o codigo
	 */
	public void setCode(Long code) {
		this.code = code;
	}
	
	/**
	 * @return name - o nome
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * @param name - o nome
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	 * @return columns - as colunas referenciadas
	 */
	public List<Column> getColumns() {
		return columns;
	}
	
	/**
	 * @param columns - as colunas referenciadas
	 */
	public void setColumns(List<Column> columns) {
		this.columns = columns;
	}
	
}